{{include file = "layouts/header.tpl"}}

<div class="loginpage"> 
    <div align="center"><img src="{{$smarty.const.WEBSITE_URL}}/public/images/ibo123-logo-black.png"/></div>

	{{if $success eq true}}
	<br/>
	<br/>
	<br/>
	<div class='alert alert-success'>
	您已注册成功，将带您进入<a href="{{$smarty.const.WEBSITE_URL}}login" >登陆</a>页面.
	</div>
	<br/>
	<br/>
	<br/>
	<script type="text/javascript">
		setTimeout("window.location.href = '{{$smarty.const.WEBSITE_URL}}login';", 3000);
		
	</script>
	{{else}}
    <form  id="registerform" action="{{$smarty.const.WEBSITE_URL}}register" method="post">
    <div class="inputbox">
        <span>
            <input type="text" name="email" placeholder="邮箱" tabindex="1" class="input-t validate[required,custom[email]]" value="{{$email}}"/>
        </span>
        <span class="border-t">
            <input type="password" id="password" name="password"  placeholder="密码" tabindex="2" class="input-t validate[required,minSize[6]]" value="{{$password}}"/>
        </span>
        <span class="border-t">
            <input type="password" name="repassword"  placeholder="在输入一次/验证密码" tabindex="3" class="input-t validate[required,equals[password],minSize[6]] " value="{{$password}}"/>
        </span>
    </div>  
        <input type="submit" class="login button but-c-b mt10" value="注册">
        {{$errortip}}
    </form>
    {{/if}}
    
    <div class="gzwomen mt20">
        使用其他账号注册:
        <a href="#"><img src="{{$smarty.const.WEBSITE_URL}}/public/images/icon-06.gif"/></a>
        <a href="#"><img src="{{$smarty.const.WEBSITE_URL}}/public/images/icon-05.gif"/></a>
    </div> 
    
</div>
{{include file = "layouts/footer.tpl"}}

<script type="text/javascript">
    $(document).ready(function(){
        // binds form submission and fields to the validation engine
        $("#registerform").validationEngine();
    });
</script>